package businesslogic.userBl;

import java.util.ArrayList;

import vo.chooseCourseVO.ChooseCourseVO;
import vo.userVO.StudentVO;
import businesslogicservice.userblservice.TeacherBLService;
import dataservice.ResultMessage;


public class TeacherController  implements TeacherBLService{

	TeacherBLService teacher;
	private String UserID;
	
	public TeacherController(String UserID) {
		this.UserID=UserID;
		teacher=new Teacher(UserID);
		
		
	}
	
	

	@Override
	public ArrayList<StudentVO> getStudentList(String departmentID)throws Exception {
		return teacher.getStudentList(departmentID);
	}

	
	@Override
	public ResultMessage login(String id, char[] password) {
		return teacher.login(id, password);
	}
	@Override
	public ResultMessage changePassword(char[] oldPassword, char[] password1,
			char[] password2) {
		return teacher.changePassword(oldPassword, password1, password2);
	}



	@Override
	public String getUserName(String userID)throws Exception {
		return teacher.getUserName(userID);
	}



	@Override
	public int getUserType(String userID) throws Exception {
		return teacher.getUserType(userID);
	}
	

	

}
